x11: Ensure bound context is compatible with sync fence
authorRay Strode <rstrode@redhat.com>
Mon, 22 Jun 2020 21:13:54 +0000 (17:13 -0400)
committerRay Strode <rstrode@redhat.com>
Mon, 22 Jun 2020 23:09:43 +0000 (19:09 -0400)
commit1912513d7ae077d2695d8fdefc4c5e40d864cbb6
tree244696f1708929e5e900b974215c4e4f3e6e7ae2
parent1643e81c47c3117a61e6357733e146da304f004f
x11: Ensure bound context is compatible with sync fence

Commit a0f6ff101e781aaf0a931be6e22f2885f4f69e04 made sure that a
context was bound before calling glClientWaitSync, but it doesn't
check that the context shares objects with the context that created
the fence.

This commit does a little more validation before deciding the current
context is good enough.
gdk/x11/gdkglcontext-x11.c